.dashboard {
  background: url(https://img.js.design/assets/img/622fff48f7f4d261f804e2e4.png);
}
.navbar {
    width: calc(100% - 104px); 
    max-width: 1820px;
    height: 52px;
    border-radius: 10px;
    background-color: rgba(223, 225, 233, 0.3);
    display: flex;
    align-items: center;
    margin: 0 52px; /* 左右间距52px */
    overflow: hidden;
}
.navbar-item {
    width: 136px;
    height: 52px;
    border-radius: 10px;
    color: rgba(51, 51, 51, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
}
.navbar-item:hover {
    background-color: #86bbe7;
}
.navbar-item.selected {
    background-color: #ffffff; 
    color: rgba(0, 185, 155, 1);
}
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }
    .navbar-item {
        width: auto; 
        flex: 1 1 100px; /* 最小宽度100px */
        text-align: center;
    }
}
 
// 盒子
.box {
  position: relative;
    display: flex;
    justify-content: space-between;
    // border: 1px solid red;
    width: calc(100% - 104px); /* 52px * 2 */
    max-width: 1795px; /* 1119px + 676px + 24px */
    margin: 50px 52px 0 52px; /* 左右间距52px */
    height: 880px;
    border-radius: 20px;
    display: flex;
    background: linear-gradient(180deg, rgba(213, 226, 253, 1) 0%, rgba(255, 255, 255, 1) 12.65%, rgba(255, 255, 255, 1) 18.68%, rgba(255, 255, 255, 1) 100%);
    // box-shadow: inset 0px -10px 85px 25px rgba(0, 0, 255, 0.1);
  }

  .nested-boxes {
    display: flex; /* 横向排列 */
  gap: 10px; /* 盒子之间的间距 */
  margin-top: -20px; /* 与主内容之间的间距 */
  width: 100%; /* 确保占满父容器宽度 */
  }
  
  .nested-box {
    flex: 1; /* 使盒子均分可用空间 */
    max-width: 398px; 
    min-width: 100px;
    color: rgba(255, 147, 1, 1);
    border-top-left-radius: 20px;
    background: linear-gradient(to bottom, #ecdb77, #ffffff);
    border-top-right-radius: 20px;
    font-size: 30px;
    height: 92px;                    
    max-height: 92px;                              
    background-color: #a0a0a0; 
    display: flex; 
    white-space: nowrap;
    align-items: center; 
    justify-content: center; 
    box-sizing: border-box; 
  }


  @media (max-width: 820px) { 
    .nested-boxes {
      flex-direction: column;
    }
  
    .nested-box {
      width: 100%; 
      max-width: none; 
    }
  }

  // 按钮上传
.thedit {
  margin-top: 200px;
  position: absolute;
  right: 0;
}

  .eidt1{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 145px;
    border-radius: 6px;
    background: rgba(0, 185, 155, 1);
    margin-bottom: 10px;
  }
 .eidt2{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 145px;
    background: rgba(0, 185, 155, 1);
    border-radius: 6px;
    margin-bottom: 10px;
  }
 .write1{
    margin-right: 10px;
  }
 .write2{ 
    margin-right: 10px;
  }
 .text1{
    margin-top: 15px;
    font-size: 16px;
    color: rgba(252, 250, 250, 1);
  }
 .text2{
  margin-top: 15px;
    font-size: 16px;
    color: rgba(252, 250, 250, 1);
  } 

  // 为空时
  .empy{
    position: absolute; 
          top: 60%; 
          left: 50%; 
          transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    
     img {
      width: 100%;
      height: 100%;
     }
  }


  // 添加后
  .studentlist {
    position: absolute; 
    top: 20%; 
    width: calc(100% - 104px); 
    max-width: 1820px;
    height: 52px;
    border-radius: 10px;
    background: rgba(151, 207, 229, 0.569);
    display: flex;
    align-items: center;
    margin: 0 52px; /* 左右间距52px */
    box-sizing: border-box;
  }
  .header {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-right: 1px solid #ddd;
    text-align: center; /* 标题文字居中显示 */
}
.header:last-child {
    border-right: none;
}
.header:nth-child(1) { flex-basis: 20%; }
.header:nth-child(2) { flex-basis: 20%; }
.header:nth-child(3) { flex-basis: 20%; }
.header:nth-child(4) { flex-basis: 40%; }
@media (max-width: 1714px) {
    .studentlist {
        width: calc(100% - 106px); /* 减去左右间隔 */
    }
}


// 学生信息
.studentbox {
  position: absolute; 
  top: 27%; 
  width: calc(100% - 104px); 
    max-width: 1820px;
   max-height: 630px;
   overflow: auto;
    border-radius: 10px;
    background: rgba(151, 207, 229, 0.569); 
    margin: 0 52px; /* 左右间距52px */
    box-sizing: border-box;
}
.row {
          // width: 1714px;
          height: 70px;
          // display: flex;
          // align-items: center;
          // border-bottom: 1px solid #ddd;
          flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-right: 1px solid #ddd;
    text-align: center; /* 标题文字居中显示 */
}
.cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cell:nth-child(1), .cell:nth-child(2), .cell:nth-child(3) {
  flex-basis: 20%;
}
.cell:nth-child(4) {
  flex-basis: 40%;
}
.cell-imgbox {
  display: flex;
  img {
    margin-left: 20px;
  }
}


// 移动
.draggable {
  width: 100px;
  height: 100px;
  line-height: 100px;
  border-radius: 50%;
  // padding: 10px;
  background-color: rgba(0, 185, 155, 0.5);
  border: 1px dashed #ccc;
  text-align: center;
  cursor: move;
  position: absolute; /* 使其可以绝对定位 */
}

.exportxlsx {
  width: 100px;
  height: 100px;
  line-height: 100px;
  border-radius: 50%;
  // padding: 10px;
  background-color: rgba(255, 147, 1, 0.4);
  border: 1px dashed #ccc;
  text-align: center;
  cursor: move;
  position: absolute; /* 使其可以绝对定位 */
  bottom: 10px;
}

.downloadxlsx {
  width: 100px;
  height: 100px;
  line-height: 100px;
  border-radius: 50%;
  // padding: 10px;
  background-color: rgba(106, 182, 226, 0.4);
  border: 1px dashed #ccc;
  text-align: center;
  cursor: move;
  position: absolute; /* 使其可以绝对定位 */
  top: 10px;
}